package com.xnyzc.lhy.order.service.order;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.order.entity.gps.OaDVehicleGps;
import com.xnyzc.lhy.order.entity.order.OaCOrderApprovalOfficial;
import com.xnyzc.lhy.order.entity.param.order.OrderParam;
import com.xnyzc.lhy.order.entity.result.user.UserLoginResult;

/**
 * <p>
 * 审批公务订单 服务类
 * </p>
 *
 * @author lhy@xnyzc.com
 * @since 2019-07-22
 */
public interface IOaCOrderApprovalOfficialService extends IService<OaCOrderApprovalOfficial> {

    /**
     *分配订单
     * @param approvalOfficial
     * @param oaDOrder
     * @return
     */
    boolean distributeOrderApprovalOfficial(OaCOrderApprovalOfficial approvalOfficial, OrderParam oaDOrder, OaDVehicleGps vehicleGps);

    /**
     * 审批公务提交申请单
     * @param approvalOfficial
     * @param orderParam
     * @return
     */
    String orderApprovalOfficial(OaCOrderApprovalOfficial approvalOfficial,OrderParam orderParam,UserLoginResult userLoginResult);
}
